package com.py.pythink.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.py.pythink.bo.ContentDto;
import com.py.pythink.entity.UserCommen;
import com.py.pythink.entity.UserSend;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserCommentDao extends BaseMapper<UserCommen> {
    @Insert("insert into t_usercomment(uid,nickname,fuid,content,ctime) values(#{uid},#{nickname},#{fuid},#{content},now())")
    int add(UserCommen commen);

    @Select("select * from t_usercomment where fuid=#{fuid}")
    List<ContentDto> selectAll(int fuid);





}
